<?
require_once("../config/dbconn.php");require_once("../config/usercls.php");
$sqlqx="select rank from {$db_prefix}users where id='".$_SESSION['sys_userid']."'";
$rsqx=$db->get_one($sqlqx);
?>
<html>
<head>
<meta http-equiv=Content-Type content=text/html;charset=utf-8>
<title> 管理页面</title>
<script language=JavaScript>
function logout(){
	if (confirm("您确定要退出吗？"))
	top.location = "outsys.php";
	return false;
}
</script>
<script language=JavaScript1.2>
function showsubmenu(sid) {
	var whichEl = eval("submenu" + sid);
	var menuTitle = eval("menuTitle" + sid);
	if (whichEl.style.display == "none"){
		eval("submenu" + sid + ".style.display=\"\";");
	}else{
		eval("submenu" + sid + ".style.display=\"none\";");
	}
}

function showsubmenu(sid) {
	var whichEl = eval("submenu" + sid);
	var menuTitle = eval("menuTitle" + sid);
	if (whichEl.style.display == "none"){
		eval("submenu" + sid + ".style.display=\"\";");
	}else{
		eval("submenu" + sid + ".style.display=\"none\";");
	}
}
</script>
<base target="main">
<link href="images/skin.css" rel="stylesheet" type="text/css">
<script language="javascript">function getCurDate(){ var d = new Date(); var week; switch (d.getDay()){ case 1: week="星期一"; break; case 2: week="星期二"; break; case 3: week="星期三"; break; case 4: week="星期四"; break; case 5: week="星期五"; break; case 6: week="星期六"; break; default: week="星期天"; } var years = d.getYear(); var month = add_zero(d.getMonth()+1); var days = add_zero(d.getDate()); var hours = add_zero(d.getHours()); var minutes = add_zero(d.getMinutes()); var seconds=add_zero(d.getSeconds()); var ndate = years+"年"+month+"月"+days+"日 "+hours+":"+minutes+":"+seconds+" "+week; divT.innerHTML= ndate;}function add_zero(temp){ if(temp<10) return "0"+temp; else return temp;}setInterval("getCurDate()",100);</script>
</head>
<body leftmargin="0" topmargin="0">
<table width="100%" height="67" border="0" cellpadding="0" cellspacing="0" background="image1/bg-header.jpg">
  <tr>
    <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="10%" rowspan="2" align="center"><p style="font-size:24px"><img src="images/logo.gif"></p> </td>
        <td width="47%" height="30" style="color:#FFFFFF" >
		<div id="Clock" align="right" style="color:#FF0000">
        <span id=localtime></span>
<script type="text/javascript">
function showLocale(objD)
{
	var str,colorhead,colorfoot;
	var yy = objD.getYear();
	if(yy<1900) yy = yy+1900;
	var MM = objD.getMonth()+1;
	if(MM<10) MM = '0' + MM;
	var dd = objD.getDate();
	if(dd<10) dd = '0' + dd;
	var hh = objD.getHours();
	if(hh<10) hh = '0' + hh;
	var mm = objD.getMinutes();
	if(mm<10) mm = '0' + mm;
	var ss = objD.getSeconds();
	if(ss<10) ss = '0' + ss;
	var ww = objD.getDay();
	if  ( ww==0 )  colorhead="<font color=\"#FF0000\">";
	if  ( ww > 0 && ww < 6 )  colorhead="<font color=\"#373737\">";
	if  ( ww==6 )  colorhead="<font color=\"#008000\">";
	if  (ww==0)  ww="星期日";
	if  (ww==1)  ww="星期一";
	if  (ww==2)  ww="星期二";
	if  (ww==3)  ww="星期三";
	if  (ww==4)  ww="星期四";
	if  (ww==5)  ww="星期五";
	if  (ww==6)  ww="星期六";
	colorfoot="</font>"
	str = colorhead + yy + "-" + MM + "-" + dd + " " + hh + ":" + mm + ":" + ss + "  " + ww + colorfoot;
	return(str);
}
function tick()
{
	var today;
	today = new Date();
	document.getElementById("localtime").innerHTML = showLocale(today);
	window.setTimeout("tick()", 1000);
}
tick();
</script>
        
        </div>
         <div></div></td>
        <td width="8%" align="right"><a href="../enuser/index.php" target="_top" style="display:none"><img src="images/china.png" width="81" height="22" border=0></a></td>
        <td width="8%" align="right"><a href="#" target="_self" onClick="logout();"><img src="images/out.gif" alt="安全退出" width="46" height="20" border="0"></a></td>
        <td width="4%">&nbsp;</td>
      </tr>
       <tr>
        <td height="22"><?
		$SQLQQ="select * from {$db_prefix}qqkf where 1";
		$RESULTQQ=$db->query($SQLQQ);
		while($rsqq=$db->fetch_array($RESULTQQ)){
		?>
<a href=' http://wpa.qq.com/msgrd?V=1&amp;Uin=<?=$rsqq['qq']?>&amp;Site=&amp;Menu=yes' target='_blank'><img src=' http://wpa.qq.com/pa?p=1:<?=$rsqq['qq']?>:4'  border='0' alt='QQ' /><?=$rsqq['kfname']?></a> 
<?
		}
		$db->free_result($RESULTQQ);
		?></td>
        <td height="22">&nbsp;</td>
        <td height="22">&nbsp;</td>
        <td height="22">&nbsp;</td>
       </tr>
    </table></td>
  </tr>
 
</table>
</body>
</html>
